﻿namespace Kang.ExtendMethod.Log
{
    public class LogManager
    {
        internal static readonly LogFactory factory = new LogFactory();

        private static readonly object lockObject = new object();

        //
        // 摘要:
        //     Gets the NLog.LogFactory instance used in the NLog.LogManager.
        //
        // 言论：
        //     Could be used to pass the to other methods
        public static LogFactory LogFactory => factory;

        public static Logger GetCurrentClassLogger()
        {
            return factory.GetCurrentClassLogger();
        }
    }
}
